package com.three.mapper;

import com.three.entity.Outlibrary;
import com.three.entity.OutlibraryGoods;
import com.three.entity.OutlibrarytransferGoods;
import com.three.vo.OutGoodsVo;
import com.three.vo.TimeVo;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
* @author 天天好心情
* @description 针对表【outlibrary_goods】的数据库操作Mapper
* @createDate 2024-10-28 11:01:17
* @Entity com.three.entity.OutlibraryGoods
*/
public interface OutlibraryGoodsMapper {

    int deleteByPrimaryKey(Long id);

    int insert(OutlibraryGoods record);

    int insertSelective(OutlibraryGoods record);

    OutlibraryGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OutlibraryGoods record);

    int updateByPrimaryKey(OutlibraryGoods record);

    List<OutlibraryGoods> getOutGoodsByCid(Integer cid);

    int insertOutGoods(OutGoodsVo outGoodsVo);


    @MapKey("id")
    List<Map<Object, Object>> getXiaoLiang();

    //获取出库商品数量
    List<Integer> getOutGoodsCounts(
            @Param("goodsid")Integer goodsid,
            @Param("branchid") Integer branchid);

    //查出该门店下通过出库审核的商品
    List<OutlibraryGoods> outlibraryAllByBranchid(TimeVo timeVo);

    //查询各个分店已经通过出库审核的商品
    List<OutlibraryGoods> getAllOutLibraryGoods();

    List<OutlibraryGoods> AllByGroupgoodsid(TimeVo timeVo);

}
